Function parameters are special variables created just for use in a function. Function parameters have two parts:
- The parameter names are in the line that defines the function. Example: background_img and sprite_img.
- The arguments (parameter values) are in the call line. For example, "space" and "astronaut1".
- Click Run to see a function with parameters. Follow the onstage directions to complete the demo.
- At the end of the demo, you will be asked to add a call line with arguments to the code!
To navigate the page using the TAB key, first press ESC to exit the code editor.